package com.hmy.uaa.bo.request;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

@Data
@ApiModel(value = "资源入参", description = "资源入参")
public class ResourceRequest {
    @ApiModelProperty(value = "主键id")
    @NotNull(groups = ResourceRequest.Update.class)
    private Long id;

    @ApiModelProperty(value = "菜单id")
    @NotNull
    private Long menuId;

    @NotEmpty
    @Size(max = 64)
    @ApiModelProperty(value = "按钮key", notes = "按钮key：64")
    private String resourceKey;


    @ApiModelProperty(value = "按钮名称", notes = "按钮名称：64")
    @Size(max = 64)
    private String resourceValue;


    @ApiModelProperty(value = "描述", notes = "长度：255")
    @Size(max = 256)
    private String description;


    public interface Insert {

    }

    public interface Update {

    }
}
